#define _CRT_SECURE_NO_WARNINGS

#include "SeqList.h"



int main()
{
	SL sl;
	SLInit(&sl);
	SLPushBack(&sl, 1);
	SLPushBack(&sl, 2);
	SLPushBack(&sl, 3);
	SLPushFront(&sl, 4);
	SLPushFront(&sl, 5);
	SLPushFront(&sl, 6);
	SLPophBack(&sl);
	SLPophBack(&sl);
	SLPophFront(&sl);
	SLPophFront(&sl);
	SLInsert(&sl, 1, 0);
	SLInsert(&sl, 9, 9);
	SLInsert(&sl, 2, 10);
	//SLErase(&sl, 5);
	////SLErase(&sl, 5);
	//SLErase(&sl, 1);
	//SLErase(&sl, 2);

	SLPrint(&sl);
	printf("\n");
	printf("%d ", SLFind(&sl, 10));
	printf("%d ", SLFind(&sl, 5));
	printf("%d ", SLFind(&sl, 9));

	SLDestroy(&sl);
	return 0;
}